<link rel="stylesheet" href="/css/header.css">
<div class="header_wrap">
	<a><img src="../../images/logo.png"></a>
	<div class="seat" id="city_sel_div">
		<div>北京</div>
	</div>
	<div class="navigation">
			<ul>
				<li>
					<a href="/">首页</a>
				</li>
				<li>
					<a href="../html/list.html">蛋糕</a>
				</li>
				<li>
					<a href="../html/list.html">提货卡券</a>
				</li>
				<li>
					<a href="../html/list.html" target="_blank">全国邮寄</a>
				</li>
				<li>
					<a href="../html/list.html" target="_blank">同城配送范围</a>
				</li>
				<li>
					<a href="../html/list.html">会员中心</a>
				</li>
				<li>
					<a href="../html/list.html" target="_blank">积分换礼</a>
				</li>
				<li style="border:none">
					<a href="../html/list.html">企业服务</a>
				</li>
						</ul>
	</div>
	<div class="top_right">
		<span>订购热线 4001-170-170</span>
		<div class="login">
		<ul class="user">
			<li><a href="/html/register.html">注册</a></li>
			<li><a href="/html/login.html">登录</a></li>
		</ul>
		<div class="link">
			<ul>
				<li class="cart"><a href="/html/cart.html">&nbsp;</a></li>
				<li class="cart_number"><a href="#">0</a></li>
				<li class="cart_help"><a href="#">&nbsp;</a></li>
			</ul>
		</div>
		</div>
	</div>
</div>

<script>
$(document).scroll(function(){   //页面加载时，获取滚动条初始高度
　　var gunDong = $(document).scrollTop();  //获取滚动条初始高度的值 ：0
	switch(gunDong){
		case 1:
			$("header").css("position","fixed");
		break;
		case 0:
			$("header").css("position","static");
		break;
	}	
})	
</script>
	

